﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SearchByTagView.aspx.vb" Inherits="TechJunkieProj.SearchByTagView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <br /><br />
    <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
        AutoGenerateColumns="False" CellPadding="4" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
                <asp:TemplateField HeaderText="Picture">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("Picture") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID = "Image" NavigateUrl='<%# Eval("ID", "Details.aspx?ID={0}") %>'  runat="server" >
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' CssClass = "imgList"/>
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" 
                    SortExpression="CompanyName" />
                <asp:BoundField DataField="ModelNumber" HeaderText="ModelNumber" 
                    SortExpression="ModelNumber" />
                <asp:BoundField DataField="Colors" HeaderText="Colors" 
                    SortExpression="Colors" />
                 <asp:TemplateField HeaderText="Author" SortExpression="Author">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("Author") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                    <a href="TechieProfile.aspx?TechieName=<%# Eval("Author") %>">
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Author") %>'></asp:Label></a>
                     </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DateUpdated" HeaderText="DateUpdated" 
                    SortExpression="DateUpdated" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
        
        
        SelectCommand="SELECT * FROM [SmartPhoneList_View] WHERE ([Tags] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Tags" QueryStringField="Tags" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
